module ValleyersHelper
  def logo_image_tag(valleyer, args = {})
    args[:alt] ||= "#{valleyer.nick_name}"
    args[:title] ||= args[:alt]

    if valleyer.logo
      image_tag(valleyers_show_logo_url(valleyer.logo, :jpg),args)
    else
      image_tag 'valleyer/logo/unknown.jpg',args
    end
  end
end
